package cn.wolfcode.service;

import cn.wolfcode.domain.SeckillProduct;
import cn.wolfcode.domain.SeckillProductVo;

import java.util.List;


public interface ISeckillProductService {
    List<SeckillProductVo> queryByTime(Integer time);

    List<SeckillProductVo> queryByTimeInCache(Integer time);

    SeckillProductVo queryById(Long id);

    SeckillProductVo queryByIdInCache(Long seckillId, Integer time);

    int decrStockCount(Long id);

    void incrStockCount(Long seckillId);
}
